package cn.rxls.community.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 房屋合同(Contractual)表实体类
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("contractual")
public class Contractual {
    @TableId(type = IdType.AUTO)
    //主键id    
    private Long contractualId;
    //所属用户
    private Long contractualUser;
    //房屋id
    private Long houseId;
    //合同编号
    private String contractualNumber;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date createTime;
    //合同状态
    private Integer contractualState;
    //房屋租金/月
    private Long houseRent;
    //支付方式
    private String paymentMethods;
    //入住人姓名
    private String occupants;
    //电子合同预览图
    private String electronicCover;
    //房间号码
    private String houseNumber;
    //网络费
    private Long internetFees;
    //服务费
    private Long serviceFees;
    //损坏物品
    private String damagedItems;
    //押金
    private Long deposit;
    //合同起始时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startTime;
    //合同截止时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endTime;
    //更新时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date updateTime;
    //合同期限
    private String term;
    //其他事项内容
    private String remark;
    //水费/吨
    private Long waterFess;
    //电费/度
    private Long tariffFees;
    //天然气费/立方米
    private Long cngFees;
    //物业地址
    private String propertyAddress;
    //资产是否确认
    private Integer assetConfirm;
    //重要内容是否确认
    private Integer importantConfirm;
    //联系电话
    private String phone;
}
